#!/bin/bash
if [ $# -lt 5 ]; then
   echo "Usage: run [IP] [Port] [Interface] [Type(A|B)] [InitialTimeDeviation] {d|debug}"
else
  cd ebin
  java -cp ../../datasource datasource.DataSource 9 10 120 | erl -noshell -s tdmaclient start $1 $2 $3 $4 $5 $6 $7
fi
